package com.game.factory;

import org.apache.log4j.Logger;
import org.springframework.context.ApplicationContext;

import com.game.framework.spring.factory.SpringBeanFactory;

public class SpringUtil {
	
	private static Logger log = Logger.getLogger(SpringUtil.class);
	
	private static final ApplicationContext context = SpringBeanFactory.getContext();
	
	private SpringUtil(){
	}
	
	public static void init(){
		SpringBeanFactory.init();
		GameBeanFactory.init();
	}
	
	public static ApplicationContext getContext(){
		return context;
	}
	
}
